package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Item;
import cn.wolfcode.trip.base.query.ItemQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IItemService {



    /**
     * 高级查询
     *
     * @param qo
     * @return
     */
    PageInfo query(ItemQueryObject qo);

    void delete(Long id);

    Item get(Long id);

    List<Item> selectAll();

    void saveOrUpdate(Item item);

    List<Item> getItemsByCatalogId(Long catalogId);

    int getItemPriceByItemId(Long itemId);
}
